package com.yoshino.iterator;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * @author yoshino
 **/
public class Test {
    public static void main(String[] args) {
        List<String> a = new ArrayList<>();
        a.add("jack");
        Iterator<String> iterator = a.iterator();
        while (iterator.hasNext()) {
            System.out.println(iterator.next());
        }
    }
}
